#include <bits/stdc++.h>
using namespace std;

int n, a[100001];

int main()
{
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    cin >> n;
    for (int i = 1; i <= n; i++)
        cin >> a[i];
    for (int i = 1; i <= n; i++)
        cout << "R", a[i]--;
    int l = n, r = n;
    while (r > 0) {
        while (l > 0 && a[l] != 1) {
            a[l--]--;
            cout << "L";
        }
        for (int i = l + 1; i <= r; i++) {
            a[i]--;
            cout << "R";
        }
        while (a[r] == 1 && r > 0) {
            a[r--] = 0;
            cout << "L";
        }
        l = r;
    }
    return 0;
}